import 'package:flutter/material.dart';

import '../Colors.dart';

class SearchXiangQing extends StatefulWidget {

  String title;
  String content;
  String intro;
  String kind;
  String author;
  SearchXiangQing({
   this.title,
   this.content,
   this.intro,
    this.kind,
    this.author,
});

  @override
  _SearchXiangQingState createState() => _SearchXiangQingState(
    title: title,
    content: content,
    intro: intro,
    kind: kind,
    author: author,
  );
}

class _SearchXiangQingState extends State<SearchXiangQing> {

  String title;
  String content;
  String intro;
  String kind;
  String author;

  _SearchXiangQingState({
    this.title,
    this.content,
    this.intro,
    this.kind,
    this.author,
  });

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
      ),
      body: Card(
        child: SingleChildScrollView(
          child: Column(
            children: <Widget>[
              Container(
                margin: EdgeInsets.only(top: 15, left: 10, right: 10),
                child: Text(
                  title,
                  style: TextStyle(
                    fontFamily: 'yuwei',
                    fontSize: 30,
                  ),
                ),
              ),
              Text(
                author,
                style: TextStyle(
                    fontFamily: 'lixuke',
                    fontSize: 18,
                ),
              ),

              Container(
                padding: EdgeInsets.only(left: 25,right: 25,top: 18,bottom: 18),
                child: Text(
                  content,
                  style: TextStyle(fontSize: 20, fontFamily: 'kai'),
                ),
              ),
              Container(
                  margin: EdgeInsets.all(10),
                  child: Text(
                    intro,
                  )),
            ],
          ),
        ),
      ),
    );
  }
}
